projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48fed40
)
i.mx change get_timer(base) to return time since base
author
Andrew Dyer
<
[email protected]
>
Fri, 12 Sep 2008 00:20:46 +0000
(
02:20
+0200)
committer
Jean-Christophe PLAGNIOL-VILLARD
<
[email protected]
>
Fri, 12 Sep 2008 00:20:46 +0000
(
02:20
+0200)
This patch changes get_timer() for i.MX to return the time since
'base' instead of the time since the counter was at zero.
Symptom seen is flash timeout errors when erasing or programming a
sector using the common cfi flash code.
Signed-off-by: Andrew Dyer <
[email protected]
>
cpu/arm920t/imx/interrupts.c
patch
|
blob
|
history
diff --git
a/cpu/arm920t/imx/interrupts.c
b/cpu/arm920t/imx/interrupts.c
index 03ce06d35abd037ea61b4ab866a002ec082af73e..c61d3bc29cebc8e8a75701173b9ffd80b285978f 100644
(file)
--- a/
cpu/arm920t/imx/interrupts.c
+++ b/
cpu/arm920t/imx/interrupts.c
@@
-60,7
+60,7
@@
void reset_timer (void)
ulong get_timer (ulong base)
{
- return get_timer_masked
()
;
+ return get_timer_masked
() - base
;
}
void set_timer (ulong t)